package com.TxmSy.manager;

import java.util.List;

import com.TxmSy.dao.UploadDao;
import com.TxmSy.entity.Classify;
import com.TxmSy.entity.Upload;

public class UploadManager {
	private UploadDao uploadDao;
	public void setUploadDao(UploadDao uploadDao) {
		this.uploadDao = uploadDao;
	}
	
	public void addupload(Upload upload){
		uploadDao.addupload(upload);
	}
	
	public List<Upload> listupload(){
		return uploadDao.listupload();
	}
	
	public void deleteupload(int id){
		uploadDao.deleteupload(id);
	}
	
	public List<Classify> listclassify(){
		return uploadDao.listclassify();
	}
	
	public List listuploads(int page, int rows) {
		return uploadDao.listuploads(page, rows);
	}

}
